package com.geek.mapper;

import com.geek.model.MarketAddress;
import com.geek.model.MarketAddressExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 小豪
 * @description ${description}
 * @date 2024-06-13 20:05
 * @version 1.0
 */
public interface MarketAddressMapper {
    long countByExample(MarketAddressExample example);

    int deleteByExample(MarketAddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAddress record);

    int insertSelective(MarketAddress record);

    List<MarketAddress> selectByExample(MarketAddressExample example);

    MarketAddress selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAddress record, @Param("example") MarketAddressExample example);

    int updateByExample(@Param("record") MarketAddress record, @Param("example") MarketAddressExample example);

    int updateByPrimaryKeySelective(MarketAddress record);

    int updateByPrimaryKey(MarketAddress record);

    int deleteAddressById(@Param("userId") Integer userId, @Param("id") Integer id);
}